<?php 
/* SVN FILE: $Id$ */
/* Secao Test cases generated on: 2010-03-16 14:48:52 : 1268750932*/
App::import('Model', 'Secao');

class SecaoTestCase extends CakeTestCase {
	var $Secao = null;
	var $fixtures = array('app.secao', 'app.categoria', 'app.texto');

	function startTest() {
		$this->Secao =& ClassRegistry::init('Secao');
	}

	function testSecaoInstance() {
		$this->assertTrue(is_a($this->Secao, 'Secao'));
	}

	function testSecaoFind() {
		$this->Secao->recursive = -1;
		$results = $this->Secao->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Secao' => array(
			'id'  => 1,
			'nome'  => 'Lorem ipsum dolor sit amet',
			'assunto'  => 'Lorem ipsum dolor sit amet',
			'slug'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>